package cn.edu.cqupt.cxcy.action;

import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import cn.edu.cqupt.cxcy.dto.TeacImpl;
/**
 * 返回项目审核后的状态
 * @author BINGBING
 *
 */
@WebServlet("/checkInfoOfProject")
public class Teac_checkInfoOfProject extends HttpServlet {
	private static final long serialVersionUID = 1L;
	protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		doPost(request,response);
	}
	protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		String ProjectId=request.getParameter("ProjectId");
		TeacImpl teacdao=new TeacImpl();
		Boolean result=teacdao.checkInfoOfProject(Integer.valueOf(ProjectId));
		request.setAttribute("status", result);
		//show.jsp为数据传送的页面，待定
		request.getRequestDispatcher("show.jsp").forward(request,response);
	}

}
